package core.command;

import core.Drawing;
import core.Stroke;

public class AddStrokeCommand extends AbstractCommand {
	
	private Stroke stroke;
	
	public AddStrokeCommand(Drawing drawing, Stroke stroke) {
		super(drawing);
		this.stroke = stroke;
	}

	@Override
	public void execute() {
		this.drawing.addStroke(stroke);
	}

	@Override
	public void undo() {
		this.drawing.removeStroke(stroke);
	}

}
